package com.lzs.bootsafety.business.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * @author zhanshi liu
 * @date 2020/03/24
 * @website www.jhmsona.cn
 */
@Controller
public class ViewController {
    @GetMapping("/login.do")
    public String login(){
        return "login";
    }
    @GetMapping("/index.html")
    public String skipIndex(){
        return "views/index";
    }
    @RequestMapping("/views/{path}/{url}.html")
    public String view(@PathVariable("path") String path, @PathVariable("url") String url){
        return "views/" + path + "/" + url;
    }
    @RequestMapping("/views/{url}.html")
    public String dev(@PathVariable("url") String url){
        return "views/" + url;
    }
}
